﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DFGK_WMS.Model.DTO
{
    /// <summary>
    /// 生产领料
    /// </summary>
    public class ProductionRequisitionDto
    {
        /// <summary>
        /// 生产备料单号
        /// </summary>
        public string OrderSn { get; set; }

        /// <summary>
        /// 生产订单号
        /// </summary>
        public string ProductionOrderSn { get; set; }

        /// <summary>
        /// 公司编码
        /// </summary>
        public string CompanyCode { get; set; }

        /// <summary>
        /// 公司名称
        /// </summary>
        public string CompanyName { get; set; }

        /// <summary>
        /// 产品名称
        /// </summary>
        public string ProductName { get; set; }

        /// <summary>
        /// 产品编码
        /// </summary>
        public string ProductCode { get; set; }

        /// <summary>
        /// 规格型号
        /// </summary>
        public string ModelSpec { get; set; }

        /// <summary>
        /// 楼层
        /// </summary>
        public int Floor { get; set; }

        /// <summary>
        /// 目的地
        /// </summary>
        public string Destination { get; set; }

        /// <summary>
        /// 生产工单号
        /// </summary>
        public string WorkOrderSn { get; set; }


        /// <summary>
        /// 生产领料明细
        /// </summary>
        public List<ProductionRequisitionDetailDto> ChildList { get; set; }

        public class ProductionRequisitionDetailDto
        {

            /// <summary>
            /// 托盘号
            /// </summary>
            public string PallBarcode { get; set; }

            /// <summary>
            /// 批次号
            /// </summary>
            public string BatchNo { get; set; }

            /// <summary>
            /// 需求重量
            /// </summary>
            public decimal Weight { get; set; }

            /// <summary>
            /// 重量单位
            /// </summary>
            public string WeightUnitName{ get; set; }

            /// <summary>
            /// 行项目
            /// </summary>
            public int Iineitem { get; set; }

            /// <summary>
            /// 物料编码
            /// </summary>
            public string MaterialCode { get; set; }

            /// <summary>
            /// 物料名称
            /// </summary>
            public string MaterialName { get; set; }

            /// <summary>
            /// 规格型号
            /// </summary>
            public string ModelSpec { get; set; }

            /// <summary>
            /// 需求数量
            /// </summary>
            public decimal NeedNum { get; set; }

            /// <summary>
            /// 单位名称
            /// </summary>
            public string UnitName { get; set; }

            /// <summary>
            /// 单位编码
            /// </summary>
            public string UnitCode { get; set; }
        }
    }
}
